<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="nowData" class="java.util.Date" scope="page"/>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <%@ include file="/common/ssb/include/common-base.jsp"%>
  <title>安家保管理系统</title>
</head>
<body class="hold-transition ${sysColor} sidebar-mini">
<div class="wrapper">

  <!-- top start -->
  <%@include file="/common/ssb/top.jsp" %>
  <!-- top end -->

  <!-- left start -->
  <%@include file="/common/ssb/left.jsp" %>
  <!-- left end-->

<div class="content-wrapper">
    <section class="content">
      <div class="row">
        <div class="col-lg-12">
            <div class="panel">
                <div class="panel-heading">
                    <h3 class="gray">${titleName}后台</h3>
                </div>
                <div class="panel-body">
                    <div class="box box-solid">
                        <div class="box-header" style="border-bottom:1px solid #e2e2e2;">
                            <h3 class="box-title gray">登录信息</h3>
                        </div>
                        <div class="box-body">
                            <table class="table table-bordered">
                                <tr>
                                    <td class="w300">登录账号</td>
                                    <td>${loginUser.userEname}</td>
                                </tr>
                                <tr>
                                    <td>用户名称</td>
                                    <td>${loginUser.userCname}</td>
                                </tr>
                                <tr>
                                    <td>手 机 号</td>
                                    <td>
                                        <c:if test="${empty loginUser.mobile}">无</c:if>
                                        <c:if test="${!empty loginUser.mobile}">${loginUser.mobile}</c:if>
                                    </td>
                                </tr>
                                <tr>
                                    <td>邮  箱</td>
                                    <td>
                                        <c:if test="${empty loginUser.email}">无</c:if>
                                        <c:if test="${!empty loginUser.email}">${loginUser.email}</c:if>
                                    </td>
                                </tr>
                                <tr>
                                    <td>用户状态</td>
                                    <td>启用中</td>
                                </tr>
                                <tr>
                                    <td>用户类型</td>
                                    <td><span id="span_index_user_type"></span></td>
                                </tr>
                                <tr>
                                    <td>当前时间</td>
                                    <td><fmt:formatDate value="${nowData}" pattern="yyyy-MM-dd hh:mm" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
      </div>
    </section>
 </div>

  <!-- foot start -->
  <%@include file="/common/ssb/foot.jsp" %>
  <!-- foot start -->
  
</div>

</body>
</html>

<script>
var clickMenu= 'ssb-index';
var userType = '${loginUser.userType}';
var userTypeText = '系统管理员';
if(userType=='broker'){
    userTypeText = '渠道商';
}
$('#span_index_user_type').text(userTypeText);
</script>



